package daobeauty.interceptor.invoke.crud;

import org.hibernate.Session;

public class SingleObjectCrud implements CrudStrategy{
	private CrudAction action;
	
	public SingleObjectCrud(CrudAction action){
		this.action = action;
	}
	
	public void apply(Session session, Object o) {
		action.execute(session, o);
	}
	
	public String toString(){
		return "single object";
	}
}
